import { ApiProperty } from "@nestjs/swagger";
import { Article } from "src/modules/article/article.entity";
import { Classify } from "src/modules/classify/classify.entity";
import { Tag } from "src/modules/tag/tag.entity";

export class HomeResultVo {
    @ApiProperty({
        description:'文章总数'
    })
    articleNum: number;

    @ApiProperty({
        description:'文章总浏览量'
    })
    articleViews: number;

    @ApiProperty({
        description:'排名前十的文章'
    })
    topArticle: Array<Article>;

    @ApiProperty({
        description:'排名前十的分类'
    })
    topClassify: Array<Classify>;

    @ApiProperty({
        description:'排名前十的标签'
    })
    topTag: Array<Tag>;
}